package buildcode.language.java.type;

import java.util.ArrayList;
import java.util.List;

import buildcode.database.DataBaseTable;
import buildcode.language.java.field.JavaEnumField;

public class JavaEnum extends JavaType<JavaEnumField, DataBaseTable> {

    private List<JavaEnumField> enumFields = new ArrayList<JavaEnumField>();

    public JavaEnum(String name, String packagePath) {
        super(name, packagePath);
    }

    public List<JavaEnumField> getEnumFields() {
        return enumFields;
    }

    public void setEnumFields(List<JavaEnumField> enumFields) {
        this.enumFields = enumFields;
    }

    public void addField(JavaEnumField field) {
        enumFields.add(field);
    }

}
